import axios from 'axios';
// 创建axios实例
const request = axios.create({
  baseURL: 'https://claude.ai/api/',
  headers: {
    'User-Agent':
      'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0',
    'Accept-Language': 'en-US,en;q=0.5',
    Referer: 'https://claude.ai/chats',
    'Content-Type': 'application/json',
    'Sec-Fetch-Dest': 'empty',
    'Sec-Fetch-Mode': 'cors',
    'Sec-Fetch-Site': 'same-origin',
    Connection: 'keep-alive',
    Cookie:
      'sessionKey=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; activitySessionId=b5739546-279a-4ff6-af8e-2f42f3c1d28d; cf_clearance=gegY212FTGXft4H35KlFQqmnQAyHLybMrXFS.EzGSIw-1700577309-0-1-151eb446.789d559f.421feba6-0.2.1700577309; __cf_bm=QZ1EgAIQqnaDginf5ZslURd3ftF07hfxOMYgCyy44Sk-1700578006-0-ASdIZ9YKO4Rkg/3DM0rEUTc9vrYspy8Pa7FT8f+6G1OKStBI8wBjFnZhxsAAu6nD//wW7AAxTRQmU18i+k1ttfQ=; __ssid=107eed57e53eee7094b91c7dcadb120; __stripe_mid=fd17d716-5368-4a5a-9c16-22123e4b47bcde5f49; __stripe_sid=55c67b6c-dba9-401c-bc1a-600f348633e451e8db; intercom-device-id-lupk8zyo=a7e0c9fc-39b2-426a-b5b2-d31e26fe3fe9; intercom-session-lupk8zyo=S0R0eDhaTzNyVUdEdlpXcEF4K0JXV2o3QWNocmhqTjV1c0ZEY01XN283T0lNSndqcEF1RTU1MXhWNHI4NUxuQS0tMFpRaHF6R3l6N1FmRE9PYjNFYkg2Zz09--d49448e0a2621be129da06142c8cbe70b1658af4',
  },
});
request.interceptors.response.use((error) => {
  return Promise.reject(error);
});
export default request;
